﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel.Design;
using System.Windows.Forms.Design;

namespace Test
{
    
    public partial class UserControlContainerEx : UserControlContainer
    {
        public UserControlContainerEx()
        {
            InitializeComponent();
        }
        class PDesigner : ControlDesigner
        {
            protected override bool GetHitTest(Point point)
            {
                point = this.Control.PointToClient(point);
                foreach (Control c in this.Control.Controls)
                {
                    if (c.Bounds.Contains(point))
                    {
                        return true;
                    }
                }
                return base.GetHitTest(point);
            }
        }
    }
}
